<template>
  <div class="duanluo" v-for="item of introduction" :key="item">
    <h1 class="ti">{{item.ti}}</h1>
    <p class="txt" v-for="(text,index) of item.txt.split('\n')" v-html="text" :key="text+index"/>
  </div>
</template>

<script lang="ts">
export default {
  name: 'Desc',
  props: {
    introduction: {
      type: Array,
      default: () => []
    }
  }

}
</script>

<style lang="scss" scoped>
.duanluo {
  margin-bottom: 35px;

  .ti {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .txt {
    white-space: pre-wrap;
    line-height: 2.4;
    text-indent: 30px;
    font-size: 14px;
    color: #6e6e6e;
  }
}
</style>
